
CFLAGS+= -ansi -fpermissive -Wall -g

all: library

clean:
	rm library main.o Library_t.o Book_t.o Borrower_t.o 

library: main.o Library_t.o Book_t.o Borrower_t.o
	g++ -o library main.o Library_t.o Book_t.o Borrower_t.o $(CFLAGS)
	
main.o: main.cpp Library_t.cpp Library_t.h Book_t.cpp Book_t.h Borrower_t.cpp Borrower_t.h
	g++ -c main.cpp $(CFLAGS)
	
Library_t.o: Library_t.cpp Library_t.h Book_t.h Borrower_t.h
	g++ -c Library_t.cpp $(CFLAGS)

Book_t.o: Book_t.cpp Book_t.h Borrower_t.h
	g++ -c Book_t.cpp $(CFLAGS)

Borrower_t.o: Borrower_t.cpp Borrower_t.h Book_t.h
	g++ -c Borrower_t.cpp $(CFLAGS)
